package cn.itsource.ymcc.enmus;

import lombok.AllArgsConstructor;
import lombok.Getter;
/**
 * 自定义异常  本个项目可用
 *
 * */
@AllArgsConstructor
@Getter
public enum CustomExceptionEnum {

    USER_NAME_NULL("60001","用户名不能为空",""),
    IMG_CODE_FALSE("60003","图片验证码错误",""),
    SEND_OFFEN("60004","请勿频繁操作发送短信验证码",""),
    CODE_NOT_EXIST("60005","验证码错误","Redis中验证码为空"),
    CODE_ERROR("60006","验证码错误",""),
    USER_EXIST("60008","该手机已注册",""),
    EMAIL_NULL("60002","email为空","");

    private String code;
    private String message;//给用户看的
    private String desc;//给程序员看的


}
